Xbasic

STRITRAN_SPECIAL Function

Syntax

Modified_String as C = stritran_special(C string ,C Start_string ,C End_string ,C replace_string [,N replace_count ])

Arguments

Modified_String

The modified version of Search_in_Text if replacements were made. Otherwise, the unmodified Search_in_Text.

string

The text to search for occurrences of the find text.

Start_string

The beginning characters of a find text of variable length.

End_string

The ending characters of a find text of variable length.

replace_string

The text that replaces the find text.

replace_count

Optional. Default = 0 (all occurrences). The number of occurrences to replace. Numeric

Description

Searches for occurrences of a sub-string starting with 'start_string' and ending with 'end_string' and replaces with 'replace_string'. Replace_count specifies how many replacements to make. Default is 0, which indicates replace all occurrences. Search is case-insensitive.

Discussion

The STRITRAN_SPECIAL() function replaces occurrences of a variable length find text, specified with a starting character string and an ending character string. STRITRAN_SPECIAL() is not case sensitive.

See Also